/* 纪念日页面特定样式 */
.memory-header {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.memory-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.memory-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 时间线样式 */
.memory-timeline {
    padding: 60px 0;
}

.timeline-wrap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.together-days {
    display: inline-block;
    text-align: center;
}

.days-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.days-label {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--light-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    z-index: 2;
}

.timeline-item.special::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.3);
}

.timeline-date {
    margin-bottom: 15px;
}

.timeline-date .date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.timeline-date .days-ago {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.timeline-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    display: flex;
    gap: 20px;
}

.memory-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
}

.memory-details {
    flex: 1;
}

.memory-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.memory-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.memory-photos {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.memory-photos img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.memory-photos img:hover {
    transform: scale(1.05);
}

.memory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background-color: #f1f1f1;
    color: #666;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

/* 即将到来的重要日子 */
.upcoming-dates {
    padding: 60px 0;
    background-color: white;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.upcoming-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.upcoming-date {
    min-width: 80px;
    width: 80px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.upcoming-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.upcoming-date .day {
    font-size: 1.8rem;
    font-weight: 700;
}

.upcoming-info {
    flex: 1;
    padding: 15px;
}

.upcoming-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.upcoming-info .countdown {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.upcoming-actions {
    display: flex;
    gap: 10px;
}

/* 添加新纪念日模态框 */
.memory-form {
    max-width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    color: var(--text-color);
    font-weight: normal;
}

.reminder-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tags-input {
    position: relative;
}

.tags-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tags-list .tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f1f1f1;
    color: #666;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.tags-list .tag i {
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .upcoming-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline-content {
        flex-direction: column;
    }
    
    .memory-icon {
        align-self: flex-start;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline:before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -30px;
        width: 20px;
        height: 20px;
    }
    
    .memory-photos {
        flex-direction: column;
        align-items: center;
    }
    
    .memory-photos img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-item {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.upcoming-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.upcoming-card:nth-child(1) { animation-delay: 0.3s; }
.upcoming-card:nth-child(2) { animation-delay: 0.4s; }
.upcoming-card:nth-child(3) { animation-delay: 0.5s; }
</rewritten_file> 